﻿@namespace MudBlazor.Charts
@inherits MudCategoryChartBase

<svg @attributes="UserAttributes" class="mud-chart-pie" width="@MudChartParent?.Width" height="@MudChartParent?.Height" viewBox="-1 -1 2 2" style="transform: rotate(-90deg);">
    <Filters />
    @foreach (var item in _paths)
    {
        <path @onclick="() => SelectedIndex = item.Index" class="mud-chart-serie" fill="@MudChartParent?.ChartOptions.ChartPalette.GetValue(item.Index % MudChartParent.ChartOptions.ChartPalette.Length)" d="@item.Data"></path>
	}

	@MudChartParent?.CustomGraphics
</svg>
<Legend Data="@_legends" />
